# coding=utf-8

import django_filters
from .models import VoteActivityApply


class VoteActivityApplyFilter(django_filters.FilterSet):
    activity = django_filters.CharFilter(field_name='member_activity__activity')
    mobile = django_filters.CharFilter(field_name='mobile', lookup_expr='icontains')
    name = django_filters.CharFilter(field_name='name', lookup_expr='icontains')
    number = django_filters.CharFilter(field_name='number')

    class Meta:
        model = VoteActivityApply
        fields = '__all__'
